﻿@using Microsoft.AspNet.Identity

@if (Request.IsAuthenticated)
{
    using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
    {
            @Html.AntiForgeryToken()
            
            <ul id="welcome">
                <li>
                    <span>@ViewResources.Content.Greetting @User.Identity.GetUserName() ! </span>
                </li>
                <li>
                    <a href="javascript:document.getElementById('logoutForm').submit()">@ViewResources.Content.Logout</a>
                </li>
            </ul>
    }
}

